import { getGameObjectById } from "../engine";
import { Behaviour } from "../engine/Behaviour";
import { TextRenderer } from "../engine/TextRenderer";
import { Transform } from "../engine/Transform";
import { number } from "../engine/validators/number";
import { Display } from "./Display";
import { Drag } from "./Drag";
import { Tip } from './Tip';
import { ItemSpeed } from "./ItemSpeed";

export class Orderfinish_1 extends Behaviour {
   /* private currentSpeed=0;
    @number()
    speed = 5;*/

    onStart() {

    }

    onTick(duringTime: number) {
        if(getGameObjectById('skin_finish').getBehaviour(Drag).IsTouch){
          getGameObjectById('skin_finish').active=false;
          getGameObjectById('UI_satisfaction_text').getBehaviour(Tip).startSati = false
        }
    }
}
